package com.hzlh.dao;

import com.hzlh.model.TCompanyBase;
import com.hzlh.model.TCompanyBaseFull;
import com.hzlh.model.TCompanyBaseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * TCompanyBaseDao继承基类
 */
public interface TCompanyBaseDao {
    List<TCompanyBaseVo> selectList(Map<String,Object> param);

    List<TCompanyBaseVo> selectRelList(Map<String,Object> param);

    int update(TCompanyBaseVo record);

    int updateArea(TCompanyBaseVo record);

    TCompanyBase selectInfo(String companyName);

    List<Map<String, Object>> selectAreaCount();

    List<Map<String, Object>> selectZoneCount();

    List<Map<String, Object>> selectCompanyCount();

    TCompanyBaseFull selectFull(String companyName);

    List<TCompanyBaseVo> selectRectRange(Map<String,Double> param);

    //企业状态统计
    List<Map<String,String>> enterpriseStateCount(@Param("companyNames") List<String> companyNames);

    //企业种类统计
    List<Map<String,String>> businessTypeCount(@Param("companyNames") List<String> companyNames);

    //行业统计
    List<Map<String,String>> industryCount(@Param("companyNames") List<String> companyNames);

    //年份统计
    List<Map<String,String>> registrationDateCount(@Param("companyNames") List<String> companyNames);
}